package com.itheima.controllect;

public class FaterCon {
    int name;
    public FaterCon() {
        System.out.println("FatherCon的无参数构造方法");
    }

    //有参数构造方法
    public FaterCon(int name) {
        this();//无参构造方法
        this.name = name;
        System.out.println("FatherCon有参数构造方法");

    }
}
